package netty.test24NettyDoubbo.service;

import netty.test24NettyDoubbo.provider.HelloServiceProvider;

public class HelloServiceProviderImpl implements HelloServiceProvider {
    /**
     * 测试下多次调用的时候会生成几个 实例
     */
    private int count=0;
    @Override
    public String hello(String msg) {
        System.out.println("hello receive param--->"+msg);
        if(msg !=null){
            return "你好客户端我已经收到消息---"+msg+",第"+(++count)+",调用";
        }
        return "空消息---";
    }
}
